package com.zpark.controller;

import com.zpark.pojo.Supermarket;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @PackageName: com.zpark.controller
 * @ClassName: SuperController
 * @Description:
 * @author: RZS
 * @date: 2023/4/11  15:46
 */
@Controller
public class SuperController {

    @RequestMapping("/sup.do")
    public ModelAndView test(Supermarket supermarket){
        ModelAndView view = new ModelAndView();
        view.addObject("sup", supermarket);
        view.setViewName("mian");

        return view;
    }
}
